package com.woniuxy.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.woniuxy.entity.ContactInfo;
import com.woniuxy.entity.LivingInfo;
import com.woniuxy.service.ContactService;
import com.woniuxy.service.LivingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName LivingController
 * @Description TODO
 * @Author LI.hh
 * @Date 2022/9/20 15:12
 * @Version 1.0
 */
@RestController
public class LivingController {
    @Autowired
    LivingService livingService;

    /**
     * 添加住房信息
     * @param livingInfo
     * @return
     */
    @PostMapping("/addLiving")
    public AjaxResult addLiving(@RequestBody LivingInfo livingInfo){
        return livingService.addLiving(livingInfo);
    }
}
